/*
 * Created on 2005-10-9
 */
package com.smartdio.company.editor;

import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.List;
import org.eclipse.swt.widgets.Text;

import com.smartdio.company.model.Person;

public class PersonBasicPanel extends Composite {

	private Group group = null;
	private Label label6 = null;
	public Text textNickName = null;
	private Label label9 = null;
	public Text textPassword = null;
	private Label label12 = null;
	public Text textPasswordCheck = null;

	public PersonBasicPanel(Composite parent, int style) {
		super(parent, style);
		initialize();
	}

	private void initialize() {
		GridLayout gridLayout = new GridLayout();
		gridLayout.numColumns = 1;
		createGroup();
		this.setLayout(gridLayout);
	}

	/**
	 * This method initializes group
	 * 
	 */
	private void createGroup() {
		GridData gridData37 = new GridData();
		gridData37.horizontalAlignment = org.eclipse.swt.layout.GridData.END;
		GridData gridData36 = new GridData();
		gridData36.horizontalAlignment = org.eclipse.swt.layout.GridData.END;
		GridData gridData35 = new GridData();
		gridData35.horizontalAlignment = org.eclipse.swt.layout.GridData.END;
		GridData gridData = new org.eclipse.swt.layout.GridData();
		gridData.grabExcessHorizontalSpace = true;
		gridData.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
		gridData.verticalAlignment = org.eclipse.swt.layout.GridData.FILL;
		gridData.grabExcessVerticalSpace = true;
		GridData gridData5 = new org.eclipse.swt.layout.GridData();
		gridData5.horizontalSpan = 3;
		gridData5.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
		gridData5.widthHint = 120;
		gridData5.horizontalAlignment = org.eclipse.swt.layout.GridData.BEGINNING;
		GridData gridData4 = new org.eclipse.swt.layout.GridData();
		gridData4.horizontalSpan = 3;
		gridData4.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
		gridData4.widthHint = 120;
		gridData4.horizontalAlignment = org.eclipse.swt.layout.GridData.BEGINNING;
		GridData gridData3 = new org.eclipse.swt.layout.GridData();
		gridData3.horizontalSpan = 3;
		gridData3.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
		gridData3.widthHint = 200;
		gridData3.horizontalAlignment = org.eclipse.swt.layout.GridData.BEGINNING;
		GridLayout gridLayout1 = new GridLayout();
		gridLayout1.numColumns = 4;
		group = new Group(this, SWT.NONE);
		group.setText("%basic");
		group.setLayoutData(gridData);
		group.setLayout(gridLayout1);
		label6 = new Label(group, SWT.NONE);
		label6.setText("%personnelNickname");
		label6.setLayoutData(gridData35);
		textNickName = new Text(group, SWT.BORDER);
		textNickName.setLayoutData(gridData3);
		label9 = new Label(group, SWT.NONE);
		label9.setText("%personnelPassWord");
		label9.setLayoutData(gridData36);
		textPassword = new Text(group, SWT.BORDER | SWT.PASSWORD);
		textPassword.setLayoutData(gridData4);
		label12 = new Label(group, SWT.NONE);
		label12.setText("%passwordConfirm");
		label12.setLayoutData(gridData37);
		textPasswordCheck = new Text(group, SWT.BORDER | SWT.PASSWORD);
		textPasswordCheck.setLayoutData(gridData5);
	}

	public void setValue(Person person) {

	}

	public void setPersonValue(Person person) {

	}

	public void addModifyListener(ModifyListener ls) {
		textNickName.addModifyListener(ls);
		textPassword.addModifyListener(ls);
		textPasswordCheck.addModifyListener(ls);
	}
} // @jve:decl-index=0:visual-constraint="10,10"
